import nuke
gap = 150
def moveUp():
	for node in nuke.selectedNodes():
		[x, y] = [node.xpos(), node.ypos()]
		node.setXYpos(x, y - gap)

def moveDown():
	for node in nuke.selectedNodes():
		[x, y] = [node.xpos(), node.ypos()]
		node.setXYpos(x, y + gap)

def moveLeft():
	for node in nuke.selectedNodes():
		[x, y] = [node.xpos(), node.ypos()]
		node.setXYpos(x - gap, y)

def moveRight():
	for node in nuke.selectedNodes():
		[x, y] = [node.xpos(), node.ypos()]
		node.setXYpos(x + gap, y)